package com.example.gokchinesefoodmappcdev.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.gokchinesefoodmappcdev.entity.CustomerInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface CustomerInfoDao extends BaseMapper<CustomerInfo> {
    /**
     * 根据条件查询所有用户
     * @param customerInfo
     * @return
     */
    List<CustomerInfo> findAllCustomerInfo(CustomerInfo customerInfo);

    /**
     * 根据条件查询所有用户数
     * @param customerInfo
     * @return
     */
    int countCustomerInfoNum(CustomerInfo customerInfo);

    /**
     * 查询导出的用户数据列表
     * @param customerInfo
     * @return
     */
    List<CustomerInfo> outAllCustomerInfoNum(CustomerInfo customerInfo);

}
